package domein;
//imports
import java.util.Locale;
import java.util.ResourceBundle;


public class Taal
	{
		private String language;
	    private String country;
	    private ResourceBundle messages;
	    
	    /**
	     * De waarde keuze controleren
	     *  1 = Engels
	     *  2 = Frans
	     *  3 = Nederlands
	    */
		public Taal(int keuze)
		{
		switch(keuze)
	      {
		  	case 1:language = new String("en");
	                 country = new String("US");
	                 break;
		    case 2:language = new String("fr");
	                 country = new String("FR");
	                 break;
		    case 3:language = new String("ne");
 			 country = new String("NL");
			  break;
		  }
		
		Locale currentLocale;
	      
	      currentLocale = new Locale(language, country);

	      messages =ResourceBundle.getBundle("MessagesBundle",currentLocale);
		}
		/** juiste resourcebundel weergeven */
		public ResourceBundle getBundel()
			{
				return messages;
				
			}
		
	}
